/*
 * h_cc2640r2f_define.c
 *
 *  Created on: Apr 7, 2021
 *      Author: hemingway
 */
#include "h_cc2640r2f_define.h"

#include <stdio.h>
#include <string.h>

#include "h_cc2640r2f_uart.h"

#define H_CC2640R2F_DEBUG_TX        H_CC2640R2F_UART_TxBuff

#ifdef UART_PRINTF
int fputc(int _c, register FILE *_fp)
{
    H_CC2640R2F_DEBUG_TX((const char *)&_c, 1);
    return(_c);
}

int fputs(const char *_ptr, register FILE *_fp)
{
    unsigned short len = strlen(_ptr);
    H_CC2640R2F_DEBUG_TX(_ptr, len);

    return len;
}
#endif

